
package com.spring.fegin;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述,该部分必须以中文句号结尾。
 *
 * @author panqingcui
 * @create 2017-02-22 10:41
 */
@RestController
public class ConsumerController {
    @Autowired
    FeignClient feignClient;
    @RequestMapping(value = "/add", method = RequestMethod.GET)
    public Integer add() {
        return feignClient.add(10, 20);
    }
}
